export default {
    listen: {
        koa: 5001,
        dnode: 5002,
    },

    graphql: {
        path: '/query',
        graphiql: true,
    },

    database: [
        'xingying',     // database
        'root',         // username
        '', // password
        {
            host: '127.0.0.1',
            pool: {
                max: 100,
                min: 10,
                idel: 10000,
            },
            define: {
                freezeTableName: true,
                timestamps: false,
            },
            logging: null,
        }
    ],

    cache: {
        // type: 'memory',
        type: 'redis',
    },

    redis: {
        host: '127.0.0.1'
    },
}
